﻿using System;
using System.Globalization;
using System.Windows.Data;
using POEApi.Model;

namespace PoESsb.View.Converters
{
    public class CharacterToLevelConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            Character c = value as Character;
            return string.Format("Level {0} {1}", c.Level, c.Class);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
